import request from '@/utils/request'
import { commonBaseUrl } from '@/utils'
// hideMessage: true // 隐藏消息提示
const moduleName = commonBaseUrl('B')

// 工程项目竣工决算总表
export function queryTSubject(prams) {
    return request({
        url: moduleName + `tfinAudit/queryTSubject${prams}`,
        method: 'get',
        showLoading: true
    })
}
// 交付使用资产明细表 
export function queryTClosingPrjB(prams) {
    return request({
        url: moduleName + `tfinAudit/queryTClosingPrjB${prams}`,
        method: 'get',
        showLoading: true
    })
}
// 辅助明细账
export function queryTClosingPrjC(prams) {
    return request({
        url: moduleName + `tfinAudit/queryTClosingPrjC${prams}`,
        method: 'get',
        showLoading: true
    })
}
// 工程付款信息统计表 
export function queryTClosingPrjD(prams) {
    return request({
        url: moduleName + `tfinAudit/queryTClosingPrjD${prams}`,
        method: 'get',
        showLoading: true
    })
}
//费用清单  
export function queryTClosingPrjE(prams) {
    return request({
        url: moduleName + `tfinAudit/queryTClosingPrjE${prams}`,
        method: 'get',
        showLoading: true
    })
}
// 设备清单 
export function queryTClosingPrjF(prams) {
    return request({
        url: moduleName + `tfinAudit/queryTClosingPrjF${prams}`,
        method: 'get',
        showLoading: true
    })
}
// 成本单查询结果
export function queryTClosingPrjG(prams) {
    return request({
        url: moduleName + `tfinAudit/queryTClosingPrjG${prams}`,
        method: 'get',
        showLoading: true
    })
}

// 项目送审
export function finalSentAudit(data) {
    return request({
        url: moduleName + `tfinAudit/finalSentAudit?tfaId=${data.tfaId}&operation=${data.isInertHistory}`,
        method: 'post',
        showLoading: true
    })
}
// 更新财务
export function updateFinancialData(data) {
    return request({
        url: moduleName + `tfinAudit/updateFinancialData?tfaId=${data.tfaId}&operation=${data.operation}`,
        method: 'post',
        showLoading: true
    })
}

// 获取下拉框字典
export function getDropdownDataApi(dictTypeId) {
    return request({
        url: moduleName + `tfinAudit/queryDict?dictTypeId=${dictTypeId}`,
        method: 'get',
        showLoading: true
    })
}
// 省份下拉框数据查询接口
export function getDropdownDataProvinceApi(prams) {
    return request({
        url: moduleName + `tfinAudit/queryArea?proOrgCode=${prams.proOrgCode}&cityOrgCode=${prams.cityOrgCode}`,
        method: 'get',
        showLoading: true
    })
}
// 查询表格接口
export function queryFinAuditList(data) {
    return request({
        url: moduleName + "tfinAudit/queryFinAudit",
        method: 'post',
        data,
        showLoading: true
    })
}
// 查询页数
export function queryFinAuditCount(data) {
    return request({
        url: moduleName + "tfinAudit/queryFinAuditCount",
        method: 'post',
        data,
        showLoading: true
    })
}
// 成本决算审核信息
export function queryFinAuditInfo(params) {
    return request({
        url: moduleName + `tfinAudit/queryFinAuditByPrjId?prjId=${params.prjId}&bizSeq=${params.bizSeq}`,
        showLoading: true
    })
}